// 1. 适配 Google 浏览器的 sort 方法
Array.prototype.mySort = function(fn = function() {}) {
  for (let i = 0; i < this.length - 1; i++) {
    for (let j = 0; j < this.length - 1 - i; j++) {
      if (fn(this[j], this[j + 1]) > 0) {
        [this[j], this[j+1]] = [this[j+1], this[j]]
      }
    }
  }
  return this
}